package com.example.hyg_veintype.activity.bleConnect.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * @author: yyw
 * time: 2020/12/16 10:16
 * desc: so分析成功的数据
 */
@Data
public class AnalyseBean implements Serializable {
    //位置
    private AnalyesData zuoCun = new AnalyesData();//左寸
    private AnalyesData zuoGuan = new AnalyesData();//左关
    private AnalyesData zuoChi = new AnalyesData();//左尺
    private AnalyesData youCun = new AnalyesData();//右寸
    private AnalyesData youGuan = new AnalyesData();//右关
    private AnalyesData youChi = new AnalyesData();//右尺

    public AnalyseBean() {
        zuoCun = new AnalyesData();//左寸
        zuoGuan = new AnalyesData();//左关
        zuoChi = new AnalyesData();//左尺
        youCun = new AnalyesData();//右寸
        youGuan = new AnalyesData();//右关
        youChi = new AnalyesData();//右尺
    }

    @Data
    public static class AnalyesData implements Serializable {
        AnalyseDateFuZhongChen fu = new AnalyseDateFuZhongChen();
        AnalyseDateFuZhongChen zhong = new AnalyseDateFuZhongChen();
        AnalyseDateFuZhongChen chen = new AnalyseDateFuZhongChen();
        //浮中沉是否检测完毕
        boolean isDetect;

        public AnalyesData() {
            fu = new AnalyseDateFuZhongChen();
            zhong = new AnalyseDateFuZhongChen();
            chen = new AnalyseDateFuZhongChen();
        }
    }

    @Data
    public static class AnalyseDateFuZhongChen implements Serializable {
        private List<Integer> pointList = new ArrayList<>();//脉点
        private int start;//最佳脉图起点
        private int end;//最佳脉图终点
        private int zhuBoFengIndex;//主波峰下标

        public AnalyseDateFuZhongChen() {
            List<Integer> pointList = new ArrayList<>();//脉点
        }

        public AnalyseDateFuZhongChen(List<Integer> pointList, int start, int end, int zhuBoFengIndex) {
            this.pointList = pointList;
            this.start = start;
            this.end = end;
            this.zhuBoFengIndex = zhuBoFengIndex;
        }
    }
}
